

/* First created by JCasGen Tue Jan 14 11:20:33 CET 2014 */
package de.unidue.EPS;

import org.apache.uima.jcas.JCas; 
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.jcas.cas.TOP_Type;

import de.unidue.EPS.DetectedPhrase;
import de.unidue.langtech.teaching.pp.type.DetectedLanguage_Type;

import org.apache.uima.jcas.tcas.Annotation;


/** 
 * Updated by JCasGen Tue Jan 14 11:20:33 CET 2014
 * XML source: C:/Users/Tsubasa/workspace/de.unidue.langtech.teaching.pp.tsubasa/src/main/resources/desc/type/PhraseType.xml
 * @generated */
public class DetectedPhrase extends Annotation {
  /** @generated
   * @ordered 
   */
  @SuppressWarnings ("hiding")
  public final static int typeIndexID = JCasRegistry.register(DetectedPhrase.class);
  /** @generated
   * @ordered 
   */
  @SuppressWarnings ("hiding")
  public final static int type = typeIndexID;
  /** @generated  */
  @Override
  public              int getTypeIndexID() {return typeIndexID;}
 
  /** Never called.  Disable default constructor
   * @generated */
  protected DetectedPhrase() {/* intentionally empty block */}
    
  /** Internal - constructor used by generator 
   * @generated */
  public DetectedPhrase(int addr, TOP_Type type) {
    super(addr, type);
    readObject();
  }
  
  /** @generated */
  public DetectedPhrase(JCas jcas) {
    super(jcas);
    readObject();   
  } 

  /** @generated */  
  public DetectedPhrase(JCas jcas, int begin, int end) {
    super(jcas);
    setBegin(begin);
    setEnd(end);
    readObject();
  }   

  /** <!-- begin-user-doc -->
    * Write your own initialization here
    * <!-- end-user-doc -->
  @generated modifiable */
  private void readObject() {/*default - does nothing empty block */}
     
 
    
  //*--------------*
  //* Feature: phrase

  /** getter for phrase - gets 
   * @generated */
  public String getPhrase() {
	    if (DetectedPhrase_Type.featOkTst && ((DetectedPhrase_Type)jcasType).casFeat_phrase == null)
	      jcasType.jcas.throwFeatMissing("phrase", "de.unidue.EPS.DetectedPhrase");
	    return jcasType.ll_cas.ll_getStringValue(addr, ((DetectedPhrase_Type)jcasType).casFeatCode_phrase);}
    
  /** setter for phrase - sets  
   * @generated */
  public void setPhrase(String v) {
	    if (DetectedPhrase_Type.featOkTst && ((DetectedPhrase_Type)jcasType).casFeat_phrase == null)
	      jcasType.jcas.throwFeatMissing("phrase", "de.unidue.EPS.DetectedPhrase");
	    jcasType.ll_cas.ll_setStringValue(addr, ((DetectedPhrase_Type)jcasType).casFeatCode_phrase, v);}    
	  }

    